package cac.fenjian.resource.materialreceipt.dao;

import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

public interface PackageUnpackDao {

    List<HashMap> cacheList(@Param("ip")String ip);
    List<HashMap> queryPackageTask(@Param("map") HashMap map);

    List<HashMap> queryAoByPackage(@Param("map") HashMap map);

    List<HashMap> queryMatchInfoByAo(@Param("map") HashMap map);

    List<HashMap> queryMatchInfoByPackageId(@Param("map") HashMap map);

    //查询是否存在任务
    HashMap queryPalletTask(@Param("palletCode") String palletCode);

    String queryConsole(@Param("ip") String ip,@Param("boxType") String boxType);

    int insertGkLog(@Param("map") HashMap map);

    List<HashMap> queryToolMaterial(@Param("palletCode") String palletCode);

    List<HashMap> queryWorkbinMaterial(@Param("palletCode") String palletCode);
    //更新拆包配套信息
    int updateUnpackMatchInfo(@Param("map") HashMap map);
    //更新箱子表数量
    int updateWorkbinInfo(@Param("map") HashMap map);
    //更新托盘表数量
    int updateToolInfo(@Param("map") HashMap map);
    //更新台账
    int updateUnpackItemInventory(@Param("map") HashMap map);
    //更新占用信息
    int updateOutAllotment(@Param("map") HashMap map);

    int insertUnpackAllotment(@Param("map") HashMap map);
    //查询拆包占用取消的数据
    List<HashMap> queryUnpackCancelAllot(@Param("map") HashMap map);

    //查询拆包占用信息
    List<HashMap> queryUnpackAllotment(@Param("map") HashMap map);

    List<HashMap> querySendCancelData(@Param("map") HashMap map);
    List<HashMap> queryAllotment(@Param("map") HashMap map);
    int updateAllotmentStatus(@Param("wmsInvOutAllotmentId") String wmsInvOutAllotmentId);
    int updateWorkbinItemQty(@Param("map") HashMap map);

    int queryMatchInfoIsClear(@Param("map") HashMap map);

    int addMatchInfoDel(@Param("map") HashMap map);
    int addWorkbinMaterialDel(@Param("map") HashMap map);
    int deleteMatchInfo(@Param("map") HashMap map);
    int deleteWorkbinMatch(@Param("map") HashMap map);
    int updateDeliveryIsDeal(@Param("map") HashMap map);

    List<HashMap> querySortMaterial(@Param("map") HashMap map);
}
